import { Column, Entity, Index } from 'typeorm'
import { BaseEntity } from './BaseEntity'

@Entity()
export class SubjectDetail extends BaseEntity {

  @Index()
  @Column({ comment: '班级 id', name: 'subject_id' })
  public subjectId!: number

  @Column({ comment: '学科介绍', type: 'text' })
  public introduce!: string

  @Column({ comment: '上课照片', name: 'picture_phones', length: 512, default: '[]' })
  public picturePhones!: string

  @Column({ comment: '上课视频', name: 'picture_Videos', length: 512, default: '[]' })
  public pictureVideos!: string

}
